package com.acwer.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public interface MiniPfmMapper  {

    @Select({
            "<script>",
            "select * from(",
            "select ROW_NUMBER()over(order by bah) r ,* from N041 where username='江津中心医院'",
            ")a where r between ${m} and ${n}",
            "</script>"
    })
    public List<Map<String,Object>> selectAll(@Param("m") Integer m,@Param("n") Integer n);

}
